package cn.source.web.controller.zk;


import cn.source.common.core.controller.BaseController;
import cn.source.common.core.domain.AjaxResult;
import cn.source.common.core.page.TableDataInfo;
import cn.source.zk.domain.entity.ZkPackageExpiryAlarm;
import cn.source.zk.service.IZkPackageExpiryAlarmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 套餐过期告警
 */
@RestController
@RequestMapping("zk/packageExpiryAlarm")
public class zkPackageExpiryAlarmController extends BaseController {

    @Autowired
    private IZkPackageExpiryAlarmService packageExpiryAlarmService;

    @GetMapping("/list")
    public TableDataInfo getPackageExpiryAlarmList() {
        startPage();
        List<ZkPackageExpiryAlarm> list =  packageExpiryAlarmService.getPackageExpiryAlarmList();
        return getDataTable(list);
    }

}
